package com.cypher.encryptionanddecryption.dao;

import com.cypher.encryptionanddecryption.bean.CommunicationBean;

import java.util.List;

/**
 * 通信信息Dao
 * @author: 古霸天
 * @date: 2020/11/27
 */
public interface CommunicationDao {
    /**
     * 根据协议ID查询通信信息
     * @param protocolId
     * @return
     */
    List<CommunicationBean> listCommunicationBean(int protocolId);

    /**
     * 根据协议ID及条件查询通信信息
     * @param protocolId
     * @param condition
     * @return
     */
    List<CommunicationBean> listCommunicationBean(int protocolId, String condition);
}
